package org.cainiao.jvm.lambda;

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;

/**
 * <br />
 * <p>
 * Author: Cai Niao(wdhlzd@163.com)<br />
 */
public class LambdaTest {

    public static void main(String[] args) {
        List<String> names = Arrays.asList("Alice", "Bob", "Charlie", "David");
        names.sort(String::compareTo);
        sort(String::compareTo);
    }

    public static void sort(Comparator<String> c) {
        System.out.println(c.compare("a", "b"));
    }
}
